package axdoc.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import axdoc.dao.CommonActivityDao;
import axdoc.model.CommonActivity;
import axdoc.service.CommonActivityService;

@Service
public class CommonActivityServiceImpl implements CommonActivityService {

	@Autowired
	CommonActivityDao commonActivityDao;

	@Override
	public int addAct(CommonActivity act) {
		return commonActivityDao.addAct(act);
	}

	@Override
	public List<CommonActivity> query() {
		return commonActivityDao.query();
	}

	@Override
	public int addActRules(String rules, int actId) {
		return commonActivityDao.addActRules(rules, actId);
	}

	@Override
	public int addActDones(String dones, int actId) {
		return commonActivityDao.addActDones(dones, actId);
	}

}
